package com.example.nacosconfig.service;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.example.nacosconfig.entity.SysUser;
import com.example.nacosconfig.entity.TAuthUser;
import com.example.nacosconfig.mapper.SysUserMapper;
import com.example.nacosconfig.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 使用数据源2
 */
@Service
@DS("new")
public class SysUserService {

    @Autowired
    private SysUserMapper sysUserMapper;


    public List<SysUser> getAll(){
        return sysUserMapper.selectList(Wrappers.lambdaQuery());
    }
}
